package com.mohunhun.dao;

import com.mohunhun.model.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageMapper {
    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);

    Integer selectUnreadCount(@Param("receiveUserId") Long receiveUserId);

    List<Message> selectByReceiveUserId(@Param("receiveUserId") Long receiveUserId);
}